﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <!-- ⚠️生产环境请指定版本号，如 https://cdn.jsdelivr.net/npm/vditor@x.x.x/dist... -->
    <link rel="stylesheet" href="./vditor-index.css" />
    <script src="./vditor-index.min.js"></script>
</head>
<body>
<div id="vditor" class="vditor" style="width:100%;height:100%;"></div>
</body>
</html>
<script>
    const vditor = new Vditor('vditor', {
        // "height": window.innerHeight - 12,
        "theme": "dark",
        "cache": {
            "enable": false
        },
        "preview": {
            "theme": {
                "current": "dark"
            }
        },
        after(){
            vditor.setValue("# 666")
        }
    })

    function show(str){
        vditor.setValue(str)
    }
</script>
